CXX=g++

CXXFLAGS=-g -std=c++11 -Wall -pedantic -pthread -I/usr/include/mysql -I/usr/include/mysql++
CXXLIBS=-lboost_system -lboost_thread -ldl -lpthread -lcppnetlib-uri -lcppnetlib-client-connections -lssl -lcrypto -lboost_date_time -lboost_program_options -lmysqlpp


BIN=prog



SRC=$(wildcard *.cpp)
OBJ=$(SRC:%.cpp=%.o)

all: $(OBJ)
	$(CXX)  -o $(BIN) $^ $(CXXLIBS)
        
%.o: %.c
	$(CXX) $@ -c $< 
                
clean:
	rm -f *.o
	rm $(BIN)


                                